home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 4
/
Gold Medal Software - Volume 4 (Gold Medal) (1994).iso
/
menuts
/
hdmm468.arj
/
E.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-09-06
|
467b
|
28 lines
ECHO OFF
CLS
IF NOT EXIST C:\PCTOOLS\PCSHELL.EXE GOTO :EXIT
IF %1. == . GOTO :MENU
IF %1. == .. GOTO :DIR
IF %2. == . GOTO :WHICH
IF EXIST %1\%2\PRN CD %1\%2
IF EXIST %1%2\PRN CD %1%2
GOTO :PCT
:WHICH
FOR %%a IN (A: a: B: b: C: c: D: d: E: e:) DO IF %1 == %%a GOTO :PCT
:DIR
IF %1. == \. CD \
IF EXIST \%1\PRN CD %1
IF EXIST %1\PRN CD %1
SHIFT
GOTO :PCT
:MENU
CD C:\MENU
C:\PCTOOLS\PCSHELL C:
GOTO :EXIT
:PCT
C:\PCTOOLS\PCSHELL %1
:EXIT